package com.atguigu.gulimall.ware;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableTransactionManagement//开启事务功能
@MapperScan("com.atguigu.gulimall.ware.dao")//扫描此包中的内容,与数据库中表的字段一一对应
@EnableFeignClients//开启远程调用服务
@EnableDiscoveryClient//开启服务注册发现功能,以便能成功的被nacos扫描到
@SpringBootApplication//gulimall-ware模块的主启动类
public class GulimallWareApplication {
    public static void main(String[] args) {
        SpringApplication.run(GulimallWareApplication.class, args);
    }

}
